package cn.itsource.zcn.pet.controller;

import cn.itsource.zcn.pet.domain.PetDetail;
import cn.itsource.zcn.pet.service.IPetDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * (PetDetail)表控制层
 *
 * @author makejava
 * @since 2021-08-23 19:33:23
 */
@RestController
@RequestMapping("/petdetail")
public class PetDetailController {
    /**
     * 服务对象
     */
    @Autowired
    private IPetDetailService tPetDetailService;

    /**
     * 查询全部数据
     *
     * @return List<>
     */
    @RequestMapping("/all")
    public List<PetDetail> queryAll() {
        return tPetDetailService.queryAll();
    }

}
